FROM  registry.cn-beijing.aliyuncs.com/qld2-production/kubectl_ossutil64:just_alpine

# ARG APP 环境变量值从 docker build --build-arg  中读取
ARG PORT
ARG APP

ENV PORT=${PORT}
ENV APP=${APP}

EXPOSE $PORT

ADD ${CI_PROJECT_DIR}/${APP} /
ADD ${CI_PROJECT_DIR}/conf/* /conf/

RUN chmod u+x /${APP}

CMD /${APP}

